@import '~antd/es/style/themes/default.less';
@import './assets/styles/antdCustomize.less';

html,
body,
#root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;

    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;

        > span {
          display: block;
        }
      }
    }
  }
}

// 兼容IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}

.pickList {
  .left-card {
    height: 100%;
  }
}

.material-item {
  line-height: 30px;
}

.material-item:hover {
  background-color: #e6f7ff;
}

.process-row {
  .ant-steps {
    flex-wrap: wrap;
    width: 90%;

    .ant-steps-item {
      margin-bottom: 20px;
    }
  }
}

.ant-divider-inner-text {
  font-weight: bold;
  font-size: 20px;
}

.ant-card-head-title {
  font-weight: bold;
  font-size: 20px;
}

.transparent-label {
  .ant-form-item-label {
    label {
      color: transparent;
      user-select: none;
    }
  }
}

.printModal {
  table {
    border-collapse: collapse;
  }

  table td {
    border: 1px solid black;
  }

  .td-t {
    border-top: none;
  }

  .td-l {
    border-left: none;
  }

  .td-b {
    border-bottom: none;
  }

  .td-r {
    border-right: none;
  }
  .checkbox-group {
    display: flex;
  }

  .checkbox-wrap {
    display: flex;
    align-items: center;
  }

  .mi-checkbox {
    width: 12px;
    height: 12px;
    margin-right: 5px;
    margin-left: 10px;
    border: 1px solid black;
  }
  .mi-checkbox-checked {
    position: relative;
  }
  .mi-checkbox-checked::after {
    position: absolute;
    left: -1px;
    width: 12px;
    height: 6px;
    border-bottom: 2px solid black;
    border-left: 2px solid black;
    -ms-transform:rotate(-50deg); 	/* IE 9 */
    -moz-transform:rotate(-50deg); 	/* Firefox */
    -webkit-transform:rotate(-50deg); /* Safari 和 Chrome */
    -o-transform:rotate(-50deg); 	/* Opera */
    transform:rotate(-50deg);
    content: '';
  }
}

.cal-wrapper {
  padding: 20px;
  background-color: white;
  .ant-picker-calendar {
    //border: 1px solid #cccccc;
    padding: 10px;
  }
}

.ant-picker-calendar-date-content {
  ul {
    margin-left: -2.3em;
  }
}
